#include <thread>
#include "raptor-lite/utils/log.h"
#include "src/utils/testutil.h"

class LogTest {};

TEST(LogTest, FUNC) {

    raptor::LogSetLevel(raptor::LogLevel::kDebug);

    log_debug("Hello, 5+5=%d", 10);
    // std::this_thread::sleep_for(std::chrono::milliseconds(50));

    log_info("Hello, 5+5=%d", 10);
    // std::this_thread::sleep_for(std::chrono::milliseconds(50));

    log_warn("Hello, 5+5=%d", 10);
    // std::this_thread::sleep_for(std::chrono::milliseconds(50));

    log_error("Hello, 5+5=%d", 10);
    std::this_thread::sleep_for(std::chrono::milliseconds(500));
}

int main() { return test::RunAllTests(); }
